package com.youoor.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.youoor.common.base.BaseDao;
import com.youoor.common.base.BaseServiceImpl;
import com.youoor.dao.CardLinkDao;
import com.youoor.domain.CardLink;
import com.youoor.domain.CardLinkQuery;
import com.youoor.service.CardLinkService;

@Service(value="cardLinkService")
public class CardLinkServiceImpl extends BaseServiceImpl<CardLink,CardLinkQuery,Long> implements CardLinkService {

	private static final Logger logger = LoggerFactory.getLogger(CardLinkServiceImpl.class);
	
	@Resource(name = "cardLinkDao")
	private CardLinkDao cardLinkDao;
	
	@Override
	public BaseDao<CardLink, CardLinkQuery, Long> getBaseDao() {
		// TODO Auto-generated method stub
		return cardLinkDao;
	}

	@Override
	public List<CardLink> getLinksByCardId(Integer cardId) {
		// TODO Auto-generated method stub
		return cardLinkDao.getLinksByCardId(cardId);
	}

}
